package com.fowo.api.sys.entity.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

public enum SysParamType implements IEnum<Integer> {
    Custom(0, "自定义（只适用于系统内置对象，不在系统参数界面直接显示）"),
    Text(1, "文本"),
    Integer(2, "整数"),
    Switch(3, "开关"),
    User(11, "用户"),
    Users(12, "多个用户")
    ;

    @EnumValue
    @JsonValue
    private final Integer value;
    private final String label;

    SysParamType(Integer value, String label) {
        this.value = value;
        this.label = label;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    public String getLabel() {
        return label;
    }
}
